

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>用户中心 - {$config['site_name']}</title>
    <link href="__TMPL__skin/css/fafa.css" rel="stylesheet" type="text/css" />
    <link href="__TMPL__skin/css/validator.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript"  language = "javascript" src="__TMPL__skin/js/tools.js"></script>
	<script type="text/javascript"  language = "javascript" src="__TMPL__skin/js/jquery.js"></script> 
    <script src="__TMPL__skin/js/formvalidator.js" type="text/javascript"></script>
    <script src="__TMPL__skin/js/formvalidatorregex.js" type="text/javascript"></script>
<meta name="viewport" content="width=device-width, width=device-width, initial-scale=1,user-scalable=0">

<!-- yeczj.com Baidu tongji analytics -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ddd20bbaac14b702d0207ff614d9eb6c";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<include file="Index:header" />



<div class="container">
<div class="content">
<div class="mq"></div>

<div class="userh">
<div class="col1"><include file="User:menu" /></div>
<div class="col2">

<div class="navtitle">会员首页 » 修改我的密码</div>



<div class="boxtip"><b>注意：</b> 必须凭原密码才能修改密码。</div>
<div class="mq"></div>

<form action="" method="post" id="form3">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="tableMain">

	<tr>
		<td class="tableHeadLeft f67" align="right" style="width: 120px">输入原密码：</td>
		<td class="tableTd">
			<span style="float: left;"><input name="pwd" type="password" id="pwd" class="input"></span>
			<span id="pwdTip" class="vt27"></span>
		</td>
	</tr>
	
	<tr>
		<td class="tableHeadLeft f67" align="right" style="width: 120px">输入新密码：</td>
		<td class="tableTd">
			<span style="float: left;"><input name="pwd1" type="password" id="pwd1" class="input"></span>
			<span id="pwd1Tip" class="vt27"></span>
		</td>
	</tr>
	
	<tr>
		<td class="tableHeadLeft f67" align="right" style="width: 120px">确认新密码：</td>
		<td class="tableTd">
			<span style="float: left;"><input name="pwd2" type="password" id="pwd2" class="input"></span>
			<span id="pwd2Tip" class="vt27"></span>
		</td>
	</tr>
	    <tr>
          <td class="tableHeadLeft" align="right">&nbsp;</td>
          <td colspan="2" align="left" class="tableFoot">
            <input type="submit" name="sumbmit" value="确定更新" id="sumbmit" class="btnb btnf">  
             <span id="ContentPlaceHolder1_Label1" style="color:Red;"></span>
            </td>
        </tr>
	
</table>
</form>






<script type="text/javascript">
           $(document).ready(function () {
				
                    $.formValidator.initConfig({ formid: "form3", onerror: function (msg) { checkSubmitFlg = false; }, onsuccess: function () { } });

                    $("#pwd").formValidator({ onshow: "请输入原密码", onfocus: "请输入密码", oncorrect: "输入正确" })
                    .ajaxValidator({
            	        type: "get",
            	        url: "index.php?m=User&a=checkpwd&pwd="+$('#pwd').val(),
            	        datatype: "json",
            	        success: function (data) {
            	            if (data == "1") {
            	                return true;
            	            }
            	            else {
            	                return false;
            	            }
            	        },
            	        buttons: $("#submit"),
            	        error: function () { alert("服务器没有返回数据，可能服务器忙，请重试"); },
            	        onerror: "原密码错误",
            	        onwait: "正在对回答进行合法性校验，请稍候..."
            	    });
                    $("#pwd1").formValidator({ onshow: "请输入新密码", onfocus: "请输入新密码", oncorrect: "输入正确" }).inputValidator({ min: 5, max: 30, onerror: "请输入5-30字之间" });

                    $("#pwd2").formValidator({ onshow: "确认新密码", onfocus: "2次新密码必须一致", oncorrect: "输入正确" }).compareValidator({desid: "pwd1",operateor: "=",onerror: "2次密码不一致,请确认"});
                	 	
                    
          });




            </script>










<div style="margin-bottom: 20px;"></div>
</div>
<div class="clear"></div>

</div>



</div>
</div>




<include file="Index:footer" />

</div>
</form>
</body>
</html>
